<?php
function google_map_location_enterprise_preview_form(){
  $form['x'] = array(
    '#type' => 'textfield',
    '#title' => t('x'),
	'#attributes' => array('readonly' => 'readonly'),
	'#default_value' => variable_get('GOOGLE_CENTER_X',GOOGLE_CENTER_X),
  );
  $form['y'] = array(
    '#type' => 'textfield',
    '#title' => t('y'),
	'#attributes' => array('readonly' => 'readonly'),
	'#default_value' => variable_get('GOOGLE_CENTER_Y',GOOGLE_CENTER_Y),
  );
  $form['zoom'] = array(
    '#type' => 'textfield',
    '#title' => t('zoom'),
	'#attributes' => array('readonly' => 'readonly'),
	'#default_value' => variable_get('GOOGLE_ZOOM',GOOGLE_ZOOM),
  );
  module_load_include('inc', 'google_map_location','google_map_location');
  $options = array(
    'key' => variable_get('GOOGLE_KEY',GOOGLE_KEY),
    'center_x' => variable_get('GOOGLE_CENTER_X',GOOGLE_CENTER_X),
    'center_y' => variable_get('GOOGLE_CENTER_Y',GOOGLE_CENTER_Y),
    'map_width' => variable_get('GOOGLE_MAP_WIDTH',GOOGLE_MAP_WIDTH),
    'map_height' => variable_get('GOOGLE_MAP_HEIGTH',GOOGLE_MAP_HEIGTH),
    'zoom' => variable_get('GOOGLE_ZOOM',GOOGLE_ZOOM),
    'items' => load_gmap_location_options(),
	'id_google_map_location_preview_x' =>'edit-x',
    'id_google_map_location_preview_y' =>'edit-y',
    'id_google_map_location_preview_zoom' =>'edit-zoom',	
  );
  $form['google_map'] = array(
    '#value' => theme('google_map_location_preview', $options),
  );
  return $form;
}

?>